package com.bit.book.model;

import lombok.Data;

import java.util.List;
@Data
public class PageResult<T> {
    private int status;
    private String errMsg;


    public Integer  total;
    public List<T> records;
    private PageRequest pageRequest;
    public PageResult(Integer total, PageRequest  pageRequest,List<T> records) {
        this.total = total;
        this.records = records;
        this.pageRequest = pageRequest;
    }
}
